﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="submit.aspx.cs" Inherits="orgman_methods_submit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>提交模型</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../style/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <div id="content">
            <div align="center">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                    
                    
                    
                    
                    
                    SelectCommand="SELECT methodname, creator, methodid FROM method WHERE (available = @available) AND (organizationid = @organizationid) ORDER BY methodid DESC">
                <SelectParameters>
                    <asp:Parameter DefaultValue="false" Name="available" 
                        Type="String" />
                    <asp:SessionParameter DefaultValue="" Name="organizationid" 
                        SessionField="organizationid" />
                </SelectParameters>
            </asp:SqlDataSource>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" 
                    DataSourceID="SqlDataSource1" DataKeyNames="methodid" Width="700px" 
                    ForeColor="#333333" GridLines="None" PageSize="5" CssClass="dataTable">
                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="methodname" HeaderText="模型名称" 
                            SortExpression="methodname" />
                        <asp:BoundField DataField="creator" HeaderText="创建者" SortExpression="creator" />
                        <asp:HyperLinkField DataNavigateUrlFields="methodid" 
                            DataNavigateUrlFormatString="submit2.aspx?methodid={0}" Text="选择提交" />
                    </Columns>
                    <PagerStyle ForeColor="#003399" HorizontalAlign="Center" />
                    <EmptyDataTemplate>
                        <asp:Label ID="Label1" runat="server" Text="当前没有任何可以提交的评估方法。"></asp:Label>
                        <br />
                        <br />
                    </EmptyDataTemplate>
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </div>
        </div>
    </div>
    <p>
        <asp:Label ID="Label2" runat="server" BackColor="White" ForeColor="Red" 
            Text="*注：只有提交了的评估方法才可以在实际项目中引用。"></asp:Label>
    </p>
    </form>
</body>
</html>